from enum import Enum


class ErrCode(Enum):
    RETURN_OK = "成功返回"
    RETURN_EMPTY = "查询为空"
    OFFSET_ERROR = "页码传参错误"
    LIMIT_ERROR = "条数传参错误"
    PARAMETER_EMPTY = "参数为空"
    PARAMETER_ERROR = "参数错误"
    USER_ERROR = "用戶信息错误"
    PAGE_ARG_ERROR = "页码参数错误"
    AA_ERROR = "城市参数错误"
    SET_OPEN_REPO_PARAMETER_ERROR = "设置茶仓公开权限参数错误"

    USER_NOT_FOUND = "用户找不到"
    ADDRESS_NOT_FOUND = "地址不存在"
    ADDRESS_MOBILE_EMPTY = '地址手机号不能为空'

    USER_TEA_REPO_UN_PUBLIC = "用户茶仓权限未公开"
    ACCESS_NOT_ALLOWED = "访问被拒绝"

    MARKET_ORDER_NULL = "挂单信息不存在"
    ORDER_NULL = "订单信息不存在"


